How Do I Ignore a Specific Error in LabVIEW? 您所在的位置:网站首页 labview simple error handler How Do I Ignore a Specific Error in LabVIEW?

How Do I Ignore a Specific Error in LabVIEW?

2024-07-09 17:50| 来源: 网络整理| 查看: 265

SolutionThere are three different methods for ignoring errors.

Clear Error VI LabVIEW 2014聽and laterIn LabVIEW 2014 and later, the Clear Error VI has an input for the specific error code to clear. This allows an error to be cleared without having to unbundle it and send the code to a case structure. This is good for ignoring a specific error, but if you want to ignore multiple errors, using the case structure is a better option.

General Error Handler VITo make LabVIEW ignore a specific error, you can use the General Error Handler VI or the Clear Error VI.聽

The General Error Handler VI is located in the聽Programming 禄 Dialog & User Interface聽palette. Right-click on the terminal聽[exception action]聽and create a constant. Set that constant to聽cancel error on match. Then wire the error number you wish to cancel to the聽[exception code]聽terminal. This will remove that error from the error cluster that matches the exception code you wired in.聽

Clear Error VI LabVIEW 2013 and earlierYou can also write your own logic to clear an error using the Clear Error VI, also located in the聽Programming 禄 Dialog & User Interface聽palette.聽

To do this in LabVIEW 2013 and earlier, use the Unbundle By Name function to unbundle the error code. Then use a case structure to take an action based on the error code. The following block diagram implements this method to watch for a particular error, and then clears that error only. This method also allows you to watch for several errors and take different actions based on the specific error.



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有